import request from '../utils/request'
// 轮播图列表
export function carouselList(data) {
  return request({
    url: '/index/Carousel',
    method: 'post',
    data
  })
}

// 优秀作品
export function previousWorksList(data) {
  return request({
    url: '/index/previous_works',
    method: 'post',
    data
  })
}
// 赛事评委
export function judgesList(data) {
  return request({
    url: '/Index/judges',
    method: 'post',
    data
  })
}

// 底部数据
export function footerData(data) {
  return request({
    url: '/index/footer',
    method: 'post',
    data
  })
}

// 获取腾讯云cos上传token
export function getTempKeys(data) {
  return request({
    url: '/index/getTempKeys',
    method: 'post',
    data
  })
}

// 写入文件上传日志
export function addFileLog(data) {
  return request({
    url: '/index/add_file_log',
    method: 'post',
    data
  })
}
// 推广图
export function ad(data) {
  return request({
    url: '/index/ad',
    method: 'post',
    data
  })
}
// 服务协议
export function serviceAgreement(data) {
  return request({
    url: 'index/service',
    method: 'post',
    data
  })
}
// 注册协议
export function registerAgreement(data) {
  return request({
    url: 'index/register',
    method: 'post',
    data
  })
}


